package com.myblog.mapper;

import com.myblog.pojo.Photo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface Photomapper {
    @Select("SELECT * FROM photo WHERE photo.article_id=#{id}")
    public Photo findpathbyid(@Param("id") int id);
}
